home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Examples / SIOWExamples / Makefile < prev   
Encoding:
Makefile  |  1998-12-03  |  1.7 KB  |  68 lines  |  [TEXT/MPS ]

  1. #   File:       Makefile
  2. #   Target:     count
  3. #   Sources:    Count.c
  4. #   Created:    Monday, September 17, 1990 10:13:20 AM
  5. #    Modified:    Thursday, March 09, 1995 10:00:00 AM
  6.  
  7.  
  8. SymOpt         = -sym off        # set to "-sym Full" to generate a .SYM file
  9. C            = SC
  10. COptions    = -proto strict {SymOpt} -w 17
  11. PC            = MrC
  12. PCCOptions    = {SymOpt}
  13.  
  14. .c.x    ƒ    .c
  15.     {PC} {DepDir}{Default}.c -o {TargDir}{Default}.c.x {PPCCOptions}
  16.  
  17. .c.o    ƒ    .c
  18.     {C} {DepDir}{Default}.c -o {TargDir}{Default}.c.o {COptions}
  19.  
  20. ###############################################################################
  21.  
  22. OBJS = Count.c.o
  23. PPCOBJS = Count.c.x
  24.  
  25. ###############################################################################
  26.  
  27. Count    ƒƒ    Count.68k Count.ppc
  28.     Duplicate -y Count.ppc Count
  29.     echo "include ∂"Count.68k∂" 'CODE';" | Rez -a -o Count
  30.     If "`Exists Count.ppc.xSYM`"
  31.         Duplicate -y Count.ppc.xSYM Count.xSYM
  32.     End
  33.     If "`Exists Count.68k.SYM`"
  34.         Duplicate -y Count.68k.SYM Count.SYM
  35.     End
  36.  
  37.  
  38. ###############################################################################
  39.  
  40. Count.68k ƒƒ {OBJS}
  41.     Link -d -c '????' -t APPL -map > Count.68k.map ∂
  42.         {SymOpt} ∂
  43.         {OBJS} ∂
  44.         "{CLibraries}"StdCLib.o ∂
  45.         "{Libraries}"SIOW.o ∂
  46.         "{Libraries}"IntEnv.o ∂
  47.         "{Libraries}"MacRuntime.o ∂
  48.         "{Libraries}"Interface.o ∂
  49.         -o {Targ}
  50.  
  51. Count.68k ƒƒ "{RIncludes}"SIOW.r
  52.     Rez -a "{Rincludes}"SIOW.r -o {Targ}
  53.  
  54. ###############################################################################
  55.  
  56. Count.ppc    ƒƒ    {PPCOBJS}
  57.     PPCLink {SymOpt} -dead on -mf -map Count.ppc.map ∂
  58.         {PPCOBJS}     ∂
  59.         "{PPCLibraries}"PPCSIOW.o ∂
  60.         "{PPCLibraries}"PPCCRuntime.o ∂
  61.         "{SharedLibraries}"InterfaceLib ∂
  62.         "{SharedLibraries}"StdCLib ∂
  63.         -t APPL -c '????' ∂
  64.         -o Count.ppc
  65.  
  66. Count.ppc ƒƒ "{RIncludes}"SIOW.r
  67.     Rez -a "{Rincludes}"SIOW.r -o {Targ} -d APPNAME=∂"Count∂"
  68.